export default [
  {
    path: "/",
    redirect: "/home",
    component: () => import("@/views/Home.vue"),
    children: [
      {
        path: "home",
        name: "home",
        meta: {
          title: "导航页",
          icon: "home",
        },
        component: () => import("@/views/Home.vue"),
      },
    ],
  },
  {
    path: "/login",
    name: "login",
    meta: { title: "登录", icon: "login" },
    component: () => import("@/views/Login.vue"),
  },
  {
    path: "/:catchAll(.*)",
    name: "404",
    meta: {
      title: "404错误",
      icon: "erro",
    },
    component: () => import("@/views/404.vue"),
  },
];
